<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//RU" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Вебинары. Владивостокский государственный университет экономики и сервиса.</title>
<link href="{base_url}/favicon.ico" rel="shortcut icon" type="image/ico" />
<link rel="stylesheet" href="{base_url}css/main.css" type="text/css" />
<link rel="stylesheet" href="{base_url}css/custom-theme/jquery-ui-1.8.14.custom.css" type="text/css" />
<script type="text/javascript" src="{base_url}js/jquery-1.5.1.min.js"></script>
<script type="text/javascript" src="{base_url}js/jquery-ui-1.8.14.custom.min.js"></script>
<script type="text/javascript">

	function autoFocus()
        {
		document.getElementById("username").focus();
	}
        function login()
        {
            $.post('{base_url}control/login/',
            {username: $('input#username').val(), passwd: $('input#passwd').val()},
            function(text){
                if(text.UID > 0)
                {
                        $(location).attr('href', '{base_url}');
                }
                else if(text.UID == -1)
                {
                        $('#msgBox').html('Ваш логин заблокирован, для разблокировки перейдите по <a href="'+
                        'http://it.vvsu.ru/dislock.asp?login='+text.login+"&URL={base_url}"+
                        '">ссылке</a>');
                        $('#msgBox').dialog({ autoOpen: true, title: 'ВНИМАНИЕ!' });
                }
                else if(text.UID == -2)
                {
                        $('#msgBox').text('Неверный пароль.');
                        $('#msgBox').dialog({ autoOpen: true, title: 'Введены неверные данные!' });
                }
                else if(text.UID == -3)
                {
                        $('#msgBox').text('У вас нет прав для доступа к данному ресурсу!');
                        $('#msgBox').dialog({ autoOpen: true, title: 'Доступ запрещен!' });
                }
            }, 'json');
        }
        function out(text)
        {
            $('div#msgBox').text(text);
            $('div#msgBox').dialog({ autoOpen: true, title: 'OUT' });
        }
</script>

<style type="text/css">
	div#content {color: #303030;}
	
	li span{ color: black; }
	
	h1{ color: #EE531D; }
	
	h2 { font-size: 20px; }
	
	li{ padding: 3px; }
	
        .ui-widget-content {border: 0px; background: none;}
        .ui-dialog .ui-dialog-content {background: white;}
	.ui-dialog .ui-dialog-titlebar .ui-icon {background-image: url({base_url}css/custom-theme/images/ui-icons_454545_256x240.png);}
	.ui-dialog .ui-dialog-titlebar .ui-icon:hover {background-image: url({base_url}css/custom-theme/images/ui-icons_ffffff_256x240.png);}
	.ui-dialog .ui-dialog-titlebar .ui-dialog-titlebar-close {background: #b2bad9;}
	.ui-dialog .ui-dialog-titlebar .ui-dialog-titlebar-close:hover {background: #255794;}
        .ui-tabs .ui-tabs-panel {padding: 1em 0px 1em 0px; }

        .ui-dialog { border: 1px solid #808080;}
        .ui-datepicker { border: 1px solid #808080; background: white;}
        .ui-datepicker-header {
          border: 1px solid #e35321;
          background: #e35321 url({base_url}css/custom-theme/images/ui-bg_flat_35_e35321_40x100.png) 50% 50% repeat-x;
          color: #ffffff;
          font-weight: bold;
        }
        .ui-datepicker a.ui-state-default { background: #ffffff; border: 0px;}
        .ui-datepicker a.ui-state-highlight { border: 1px solid #e35321; background: white; color: gray;}
        .ui-datepicker a.ui-state-hover { background: #e35321; }
        .ui-datepicker a.ui-state-active { background: #e35321; color: white;}

        .ui-icon { width: 16px; height: 16px; background-image: url({base_url}css/custom-theme/images/ui-icons_ffffff_256x240.png); }
        .ui-widget-content .ui-icon {background-image: url({base_url}css/custom-theme/images/ui-icons_ffffff_256x240.png); }
        .ui-widget-header .ui-icon {background-image: url({base_url}css/custom-theme/images/ui-icons_ffffff_256x240.png); }
        .ui-state-default .ui-icon { background-image: url({base_url}css/custom-theme/images/ui-icons_888888_256x240.png); }
        .ui-state-hover .ui-icon, .ui-state-focus .ui-icon {background-image: url({base_url}css/custom-theme/images/ui-icons_ffd27a_256x240.png); }
        .ui-state-active .ui-icon {background-image: url({base_url}css/custom-theme/images/ui-icons_454545_256x240.png); }
        .ui-state-highlight .ui-icon {background-image: url({base_url}css/custom-theme/images/ui-icons_2e83ff_256x240.png); }
        .ui-state-error .ui-icon, .ui-state-error-text .ui-icon {background-image: url({base_url}css/custom-theme/images/ui-icons_cd0a0a_256x240.png); }
</style>

</head>
<body onload="autoFocus();">

<!-- Header Start -->
{header}
<!-- Content Start -->
    <div id="content">

        <div id="about">
                {content}
        </div>

        <div id="nowRunning">
           {menu}
        </div>

    </div>
<!-- Content End -->

<!-- Footer Start -->
    <div id="footer">
            {footer}
    </div>
<!-- Footer End -->
<div id="msgBox" title="MsgBox" style="display: none;">
</div>
{metrica}
</body>
</html>
